package com.design02_Structural.pattern09_adapter.example01;

/**
 * @ClassName SDAdapterTF
 * @Description 定义适配器类(SD兼容TF)
 * @Author zhangjunhao
 * @DATE 2023/9/5 21:46
 */
public class SDAdapterTF extends TFCardImpl implements SDCard {

    @Override
    public String readSD() {
        System.out.println("adapter read tf card ");
        return super.readTF();
    }

    @Override
    public void writeSD(String msg) {
        System.out.println("adapter write tf card");
        super.writeTF(msg);
    }
}
